cmake_minimum_required(VERSION 3.5)
project(uart_stress VERSION 1.0.0)

set(CMAKE_C_STANDARD 99)
set(CMAKE_C_FLAGS -static)


set(${PROJECT_NAME}_VERSION ${PROJECT_VERSION})
set(${PROJECT_NAME}_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
set(${PROJECT_NAME}_VERSION_MINOR ${PROJECT_VERSION_MINOR})
set(${PROJECT_NAME}_VERSION_PATCH ${PROJECT_VERSION_PATCH})
string(TIMESTAMP COMPILE_TIME %y%m%d_%H.%M.%S)
set(build_time ${COMPILE_TIME})


configure_file(inc/version.h.in ${PROJECT_SOURCE_DIR}/inc/version.h)

include_directories(inc)
add_subdirectory(src)
